package com.starlink.model.dtomapper;

import com.starlink.model.domain.UserProductCollectDO;
import com.starlink.model.request.UserProductCollectRequest;
import com.starlink.model.vo.UserProductCollectVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface UserProductCollectDtoMapper {

    UserProductCollectDtoMapper INSTANCE = Mappers.getMapper(UserProductCollectDtoMapper.class);

    /**
    * DO to VO
    * @param userProductCollectDO
    * @return
    */
    UserProductCollectVO do2VO(UserProductCollectDO userProductCollectDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    UserProductCollectDO request2DO(UserProductCollectRequest request);
}
